<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>登录 | imyours企业即时通讯平台</title>

<link rel="stylesheet" href="./css/reset.css" type="text/css"
	media="screen" title="no title" />
<link rel="stylesheet" href="./css/text.css" type="text/css"
	media="screen" title="no title" />
<link rel="stylesheet" href="./css/form.css" type="text/css"
	media="screen" title="no title" />
<link rel="stylesheet" href="./css/buttons.css" type="text/css"
	media="screen" title="no title" />
<link rel="stylesheet" href="./css/login.css" type="text/css"
	media="screen" title="no title" />

<script type="text/javascript" src="js/jquery-1.7.1.js"></script>
</head>

<body>

	<div id="login">
		<h1>imyours企业即时通讯平台</h1>
		<div id="login_panel">
			<div class="login_fields">
				<div class="field">
					<label for="email">用户名</label> <input type="text" name="username"
						value="" id="username" tabindex="1" placeholder="username" />
				</div>

				<div class="field">
					<label for="password">密码 <small><a
							href="javascript:;">忘记密码?</a></small></label> <input type="password"
						name="password" value="" id="password" tabindex="2"
						placeholder="password" />
				</div>
			</div>
			<!-- .login_fields -->

			<div class="login_actions">
				<button onclick="login()" type="button" class="btn btn-orange"
					tabindex="3">登录</button>
			</div>
		</div>
		<!-- #login_panel -->
	</div>
	<!-- #login -->

</body>
<script type="text/javascript" src="js/var.js"></script>
<script type="text/javascript" src="js/json2.js"></script>
<script>

function login(){
	$.post(getUrl(),{
		service:"login",
		username:$("#username").val(),
		password:$("#password").val()
	},function (data){
		var jo = JSON.parse(data);
		if(jo.state == "success"){
			parent.logSuc(jo.data.sessionId);
			
		}else{
			alert("用户名或者密码错误");
		}
	});
	
	
}


</script>
</html>